
class IdcardValidData {
  String? code;
  String? message;
  Result? result;

  IdcardValidData({this.code, this.message, this.result});

  IdcardValidData.fromJson(Map<String, dynamic> json) {
    if(json["code"] is String) {
      code = json["code"];
    }
    if(json["message"] is String) {
      message = json["message"];
    }
    if(json["result"] is Map) {
      result = json["result"] == null ? null : Result.fromJson(json["result"]);
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["code"] = code;
    _data["message"] = message;
    if(result != null) {
      _data["result"] = result?.toJson();
    }
    return _data;
  }
}

class Result {
  String? name;
  String? idcard;
  String? res;
  String? description;
  String? sex;
  String? birthday;
  String? address;

  Result({this.name, this.idcard, this.res, this.description, this.sex, this.birthday, this.address});

  Result.fromJson(Map<String, dynamic> json) {
    if(json["name"] is String) {
      name = json["name"];
    }
    if(json["idcard"] is String) {
      idcard = json["idcard"];
    }
    if(json["res"] is String) {
      res = json["res"];
    }
    if(json["description"] is String) {
      description = json["description"];
    }
    if(json["sex"] is String) {
      sex = json["sex"];
    }
    if(json["birthday"] is String) {
      birthday = json["birthday"];
    }
    if(json["address"] is String) {
      address = json["address"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["name"] = name;
    _data["idcard"] = idcard;
    _data["res"] = res;
    _data["description"] = description;
    _data["sex"] = sex;
    _data["birthday"] = birthday;
    _data["address"] = address;
    return _data;
  }
}